function f(){
    var userLoginName = $("#userLoginName").val();
    var userName = $("#userName").val();
    var userPassword = $("#userPassword").val();
    var userType = $("#userType").val();
    var userMoney = $("#userMoney").val();
    var userId = $("#userId").val();
    var url = getRealPath()+"/userServlet";
    $.ajax({
        url: url,
        data:{
            action:"userUpdate",
            userLoginName:userLoginName,
            userName:userName,
            userPassword:userPassword,
            userType:userType,
            userMoney:userMoney,
            userId:userId
        },
        method: "POST",
        dataType: "json",
        success: function (result) {
            alert(result.message);
            if(result.status == 1){
                window.location.href=getRealPath()+"/userServlet?action=userManage";
            }
        }
    });
}